package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.service.StatisticService;
import net.wanho.vo.R;
import net.wanho.vo.StoreStaVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2024-10-24 15:46
 * Description：<描述>
 */
@RestController
@RequestMapping("/statistics")
@RequiredArgsConstructor
public class StatisticsController {

    private final StatisticService statisticService;

    @GetMapping("/store-invent")
    public R getStoreInvent(){
        List<StoreStaVo> list = statisticService.getStoreInvent();
        return R.success(list);
    }
}
